 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>数据库连接添加</title>
<#include "/common/resource_include.ftl">
<style type="text/css">
*{ padding:0px; margin:0px;}

</style>
<script src="${tdmPath}/js/service_input.js"></script>
</head>
<body>

<form class="layui-form " style="padding:20px;">
 <input type="hidden" name="id" id="id"  value="${(dataBase.id)!''}">
 
   <div class="layui-form-item">
	<label class="layui-form-label" class="layui-icon">类型</label>
	<div class="layui-input-block">
		<select name="typeId" id="typeId" lay-verify="required" lay-filter="serviceFilter" >
				<option value="">请选择数据库类型 </option>
				<#list allType as type_list>
				    <option value="${type_list.id}" <#if dataBase ?? && type_list.id??&& dataBase.typeId?? && dataBase.typeId==type_list.id>selected</#if>>${type_list.serviceName}</option>    
				</#list>
			
      </select>
	</div>
  </div>
  
  <div class="layui-form-item">
    <label class="layui-form-label">连接名</label>
    <div class="layui-input-block">
      <input type="text" name="connectName" id="connectName" lay-verify="required" placeholder="请输入连接名" value="${(dataBase.connectName)!''}" autocomplete="off" class="layui-input">
    </div>
  </div>
  
   <div class="layui-form-item">
    <label class="layui-form-label">IP</label>
    <div class="layui-input-block">
      <input type="text" name="serviceIp" id="serviceIp" lay-verify="required" placeholder="请输入IP" value="${(dataBase.serviceIp)!''}" autocomplete="off" class="layui-input">
    </div>
  </div>
  
   <div class="layui-form-item">
    <label class="layui-form-label">端口</label>
    <div class="layui-input-block">
   <input  type="text" name="port" id="port"  lay-verify="required" placeholder="请输入端口"  autocomplete="off" class="layui-input" value="${(dataBase.port)!''}">
    </div>
  </div>
  
  <div class="layui-form-item">
    <label class="layui-form-label">用户名</label>
    <div class="layui-input-block">
    <input  type="text" name="dbUser" id="dbUser"  lay-verify="required" placeholder="请输入用户名"  autocomplete="off" class="layui-input" value="${(dataBase.dbUser)!''}">
    </div>
  </div>
  
  <div class="layui-form-item">
    <label class="layui-form-label">密码</label>
    <div class="layui-input-block">
    <input  type="text" name="dbPwd" id="dbPwd"  lay-verify="required" placeholder="请输入密码"  autocomplete="off" class="layui-input" value="${(dataBase.dbPwd)!''}">
    </div>
  </div>
  <div class="layui-form-item">
    <div class="layui-input-block">
      <button class="layui-btn" lay-submit="" lay-filter="formDemo" style="background:#27847b; color:#fff">立即提交</button>
      <button type="reset" class="layui-btn layui-btn-primary">重置</button>
    </div>
  </div>
</form>

<script>

</script>
</body>
</html>